package com.my.chapter3;

public class practice3 {
    public static void main(String[] args) {
        Cup c = new Cup();
        c.num = 3.0F;
        System.out.println("1：c.num="+c.num);
        f(c);
        System.out.println("2：c.num="+c.num);
    }
    static void f(Cup c){
        c.num = 6.0F;
    }
}

class Cup{
    float num;
}

